﻿using System;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Activation;
using Silverlight4Demo.Model;
using System.ServiceModel.Web;
namespace Silverlight4ApplicationDemo.Web.Services {
    [ServiceContract(Namespace = "")]
    [SilverlightFaultBehavior]
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class DataServiceDemo {
        [OperationContract]
        [WebGet(UriTemplate="Index/{count}", ResponseFormat=WebMessageFormat.Json)]
        public MockListData GetMockData(string count ) {
            // Add your operation implementation here
            return MockListData.Mock(int.Parse(count));
        }

        // Add more operations here and mark them with [OperationContract]
    }
}
